package com.awen.sqlSession;

import com.awen.pojo.Configuration;
import com.awen.pojo.MappedStatement;

import java.beans.IntrospectionException;
import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.List;

public interface Executor {
    //查询
    public <E> List<E> query(Configuration configuration, MappedStatement mappedStatement,Object... params) throws SQLException, NoSuchFieldException, IllegalAccessException, InstantiationException, IntrospectionException, InvocationTargetException;
    //修改和删除共用
    public Integer update(Configuration configuration, MappedStatement mappedStatement,Object... params) throws SQLException, Exception;
}
